stop (OTF Keyword)

Stops processing an ObjGen OTF template file and halts code generation for the object.

Syntax

%stop%

Remarks

The stop keyword is useful for controlling code generation flow or stopping generation if an unexpected condition occurs. Sometimes it is useful to exclude the latter section of the template if a certain condition with the object being generated is not met

Example

This example stops generation for a class object if there are no properties defined.

%if CLASS.GetPropertyCount == 0%
%stop%
%end%

 

 

 


Copyright Information
 
Copyright ⌐ 1998-1999 Everett Ward Systems. All rights reserved.
Other products & companies referred to herein are trademarks or registered trademarks of their
respective companies or mark holders.